package com.escool.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.escool.dao.CatEventoDAO;
import com.escool.dao.CatMatriculaDAO;

import com.escool.model.TbMatricula;

@Service
public class CatMatriculaServiceImpl implements CatMatriculaService{
@Autowired
CatMatriculaDAO catTipoCobroDAO;

@Transactional
public void addTbMatricula(TbMatricula TbMatricula) {
	// TODO Auto-generated method stub
	catTipoCobroDAO.addTbMatricula(TbMatricula);
}

@Transactional
public void editTbMatricula(TbMatricula TbMatricula) {
	// TODO Auto-generated method stub
	catTipoCobroDAO.editTbMatricula(TbMatricula);
}

@Transactional
public void delTbMatricula(int id) {
	// TODO Auto-generated method stub
	catTipoCobroDAO.delTbMatricula(id);
}

@Transactional
public List<TbMatricula> listTbMatricula() {
	// TODO Auto-generated method stub
	return catTipoCobroDAO.listTbMatricula();
}

@Transactional
public TbMatricula findTbMatricula(int id) {
	// TODO Auto-generated method stub
	return catTipoCobroDAO.findTbMatricula(id);
}

}
